package com.zb.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author WEN
 * @Date 2023/10/31 0031
 **/
@Data
@ApiModel("服务页面标题对象")
public class ServicePageTitleVo {
    @NotNull(message = "服务页面ID不能为空")
    @ApiModelProperty(value = "服务页面ID", required = true)
    private Long id;

    @NotBlank(message = "页面标题不能为空")
    @Length(max = 10, message = "页面标题长度限制 10 个字符")
    @ApiModelProperty(value = "页面标题", required = true)
    private String title;

    @NotNull(message = "服务页面状态不能为空")
    @ApiModelProperty(value = "服务页面状态：false-启用，true-禁用", required = true, example = "false")
    private Boolean status;
}
